<% content_for :title, "Réponse à #{ @ad }" %>

<%= form_tag(:controller => 'offers', :action => 'create', :ad => @ad.id, :method => "post") do %>

<fieldset>
  <legend>Offre</legend>
  <p>
  <%= label_tag(:offer, "titre") %>
  <%= text_field :offer, :title %>
  </p>
  <p>
  <%= label_tag(:offer, "message") %>
  <%= text_field :offer, :content %>
  </p>
</fieldset>
<fieldset>
  <legend>Commentaire associé</legend>
  <p>
  <%= label_tag(:comment, "titre") %>
  <%= text_field :comment, :title %>
  </p>
  <p>
  <%= label_tag(:comment, "message") %>
  <%= text_field :comment, :content %>
  </p>
</fieldset>
<p>
<%= submit_tag 'Poster' %>
</p>
<% end %>
